﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;

namespace IPMessager.Net.Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Test();
        }

        private void Test()
        {
            IPAddress[] ipadresses1 = Dns.GetHostAddresses("cnshz3pc468");
            IPAddress[] ipadresses2 = Dns.GetHostAddresses("cnshz3pc469");

            IPAddress ipadress468 = ipadresses1.Where(e => e.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First();
            IPAddress ipadress469 = ipadresses2.Where(e => e.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First();

            byte[] b468 = ipadress468.GetAddressBytes();
            byte[] b469 = ipadress469.GetAddressBytes();
        }
    }
}
